<?php

include_once ("../dao/recruitmentDAO.php");

function countNumOfRecruitmentByName($keyword) {
    return countByName($keyword);
}

function getRecruitmentBy($keyword, $start_position, $row_per_page) {
    return findBy($keyword, $start_position, $row_per_page);
}

function getRecruitmentById($insID){
    return loadRecruitmentByID($insID);
}

function updateRecruitment($recID, $name){
    return update($recID, $name);
}

function addRecruitment($name){
    return insert($name);
}

function deleteRecruitment($recID){
    return delete($recID);
}

function getAllRecruitment(){
    return selectAll();
}

function getFirstRowOfRecruitment(){
	return findFirstRowOfRecruitment();
}
?>